/*
**  (C) by Rael Delcon (rael.delcon@gmail.com)
**
** Permission to use, copy, modify and distribute this code and
** its documentation for any purpose is hereby granted without
** fee, provided that the above copyright notice, or equivalent
** attribution acknowledgement, appears in all copies and
** supporting documentation.
**
** Copyright holder makes no representations about the suitability
** of this software for any purpose. It is provided "as is" without
** express or implied warranty.
*/

#include "m3d.h"
  
int main(int argc, char *argv[])
{

  m3Dmesh *m = NULL;
  FILE *f = NULL;
  
  if (argc > 1 && (f=fopen(argv[1],"r"))) { 
    m = m3DloadObj(f);
    fclose(f);
  }
    
  if (m) {
    m3DsaveObj(stderr,m);    
  }
  
  m = m3Dfree(m);
  return (0);
}
